import "./static/index.scss";
window.onload=function(){
    let btnGroup = document.querySelector('.btn-group');
    // 事件委托
    btnGroup.onclick=function(e){
        if(e.target.tagName=="BUTTON"){
            let dataName = e.target.dataset.name;
            document.body.dataset.theme = dataName
        }
    }
}